/**
 *	Created date : 20/01/2010
 *  Created By : Miguel Coimbra / ABSI
 *	Description : All the methods used in the contact Table 
 */

public class ContactMGT {	
		
	/**
	 *	Get the ASCII code from a specific char. (still No Case statements up to date in Apex)
	 *		@String c : Value to translate. 
	 */	 
	 
	public static String Code(String c){
		if (c.equals('0')){ return '48' ; }
		if (c.equals('1')){ return '49' ; }
		if (c.equals('2')){ return '50' ; }
		if (c.equals('3')){ return '51' ; } 
		if (c.equals('4')){ return '52' ; }
		if (c.equals('5')){ return '53' ; }
		if (c.equals('6')){ return '54' ; }
		if (c.equals('7')){ return '55' ; }
		if (c.equals('8')){ return '56' ; }
		if (c.equals('9')){ return '57' ; }
		if (c.equals('A')){ return '65' ; }
		if (c.equals('B')){ return '66' ; }
		if (c.equals('C')){ return '67' ; }
		if (c.equals('D')){ return '68' ; }
		if (c.equals('E')){ return '69' ; }
		if (c.equals('F')){ return '70' ; }
		if (c.equals('G')){ return '71' ; }
		if (c.equals('H')){ return '72' ; }
		if (c.equals('I')){ return '73' ; }
		if (c.equals('J')){ return '74' ; }
		if (c.equals('K')){ return '75' ; }
		if (c.equals('L')){ return '76' ; }
		if (c.equals('M')){ return '77' ; }
		if (c.equals('N')){ return '78' ; }
		if (c.equals('O')){ return '79' ; }
		if (c.equals('P')){ return '80' ; }
		if (c.equals('Q')){ return '81' ; }
		if (c.equals('R')){ return '82' ; }
		if (c.equals('S')){ return '83' ; }
		if (c.equals('T')){ return '84' ; }
		if (c.equals('U')){ return '85' ; }
		if (c.equals('V')){ return '86' ; }
		if (c.equals('W')){ return '87' ; }
		if (c.equals('X')){ return '88' ; }
		if (c.equals('Y')){ return '89' ; }
		if (c.equals('Z')){ return '90' ; }
		if (c.equals('a')){ return '97' ; }
		if (c.equals('b')){ return '98' ; }
		if (c.equals('c')){ return '99' ; }
		if (c.equals('d')){ return '100' ; }
		if (c.equals('e')){ return '101' ; }
		if (c.equals('f')){ return '102' ; }
		if (c.equals('g')){ return '103' ; }
		if (c.equals('h')){ return '104' ; }
		if (c.equals('i')){ return '105' ; }
		if (c.equals('j')){ return '106' ; }
		if (c.equals('k')){ return '107' ; }
		if (c.equals('l')){ return '108' ; }
		if (c.equals('m')){ return '109' ; }
		if (c.equals('n')){ return '110' ; }
		if (c.equals('o')){ return '111' ; }
		if (c.equals('p')){ return '112' ; }
		if (c.equals('q')){ return '113' ; }
		if (c.equals('r')){ return '114' ; }
		if (c.equals('s')){ return '115' ; }
		if (c.equals('t')){ return '116' ; }
		if (c.equals('u')){ return '117' ; }
		if (c.equals('v')){ return '118' ; }
		if (c.equals('w')){ return '119' ; }
		if (c.equals('x')){ return '120' ; }
		if (c.equals('y')){ return '121' ; }
		if (c.equals('z')){ return '122' ; }
		return '0';
	} 
}